/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.address.entity;

import com.jeeplus.modules.member.entity.Member;
import javax.validation.constraints.NotNull;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 用户地址Entity
 * @author zhych
 * @version 2021-11-16
 */
@Data
public class Address extends DataEntity<Address> {
	
	private static final long serialVersionUID = 1L;
    @NotNull(message="用户不能为空")
	@ExcelField(title="用户", fieldType=Member.class, value="u.nickname", align=2, sort=1)
	private Member u;		// 用户
	@ExcelField(title="联系人", align=2, sort=2)
	private String linkman;		// 联系人
	@ExcelField(title="地址", align=2, sort=3)
	private String address;		// 地址
	@ExcelField(title="地址详情", align=2, sort=4)
	private String addressDetail;		// 地址详情
	@ExcelField(title="默认状态", dictType="yes_no", align=2, sort=5)
	private String state;		// 默认状态

	private String mobile;
	
	public Address() {
		super();
	}
	
	public Address(String id){
		super(id);
	}
}